//
//  AccountViewController.h
//  FanTest
//
//  Created by Cheng on 12/6/28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BK_Enviroment.h"
#import <TapkuLibrary/TapkuLibrary.h>
#import "SelectBudget.h"
#import "Crop.h"
#import "AccountInfo.h"
#import "EditGroupUser.h"
#import "EditPartner.h"
#import "EditPlanner.h"
#import "ChangePassword.h"
#import "ChannelView.h"

@class AccountViewController;
@protocol AccountViewControllerDelegate <NSObject>

-(void)AccountViewControllerDelegateDidFeedSet:(AccountViewController *)controller;
-(void)AccountViewControllerDelegateDidMyBooks:(AccountViewController *)controller;
-(void)AccountViewControllerDelegateDidLogoScreen:(AccountViewController *)controller;
-(void)AccountViewControllerDelegateDidStream:(AccountViewController *)controller;

@end

@interface AccountViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate,UIPopoverControllerDelegate, TKCalendarMonthViewDelegate, TKCalendarMonthViewDataSource, SelectBudgetDelegate, EditGroupUserDelegate, EditPartnerDelegate, EditPlannerDelegate, ChangePasswordDelegate, UIAlertViewDelegate, ChannelViewDelegate>
{
    IBOutlet UITextField *Txt_yourName;
    IBOutlet UITextField *Txt_yourPartnerName;
    IBOutlet UITextField *Txt_Password;
    IBOutlet UITextField *Txt_UserName;
    
    IBOutlet UILabel *Lab_yourName;
    IBOutlet UILabel *Lab_yourEmail;
    IBOutlet UILabel *Lab_yourPartnerName;
    IBOutlet UILabel *Lab_yourPartnerEmail;
    IBOutlet UILabel *Lab_PlannerName;
    IBOutlet UILabel *Lab_PlannerEmail;
    IBOutlet UILabel *Lab_wedding;
    
    IBOutlet UIButton *Bt_Continue;
    IBOutlet UIButton *Bt_Channel;
    IBOutlet UIButton *Bt_yourPhoto;
    IBOutlet UIButton *Bt_ChangePassword;
    IBOutlet UIButton *BT_calendar;
    IBOutlet UIButton *BT_editBudget;
    IBOutlet UIButton *Bt_AddSharingCircle;
    
    IBOutlet UIScrollView *SVw_SharingCircles;
    IBOutlet UIView *Vw_AddSharingCircle;
    IBOutlet UIImageView *IVw_Background;
    
    IBOutlet UIActivityIndicatorView *ActivityView;
    
    BK_Enviroment *BK_En_object;
    TKCalendarMonthView *TK_CalenderVW;
    
    IBOutlet SelectBudget *Vw_selectBudget;
    IBOutlet EditGroupUser *Vw_EditGroupUser;
    IBOutlet EditPartner *Vw_EditPartner;
    IBOutlet EditPlanner *Vw_EditPlanner;
    IBOutlet ChangePassword *Vw_ChangePassword;
}

@property (nonatomic, strong) UIButton *BT_editBudget;
@property (nonatomic, strong) UIView *Vw_selectBudget;

@property (nonatomic, strong) UIButton *BT_calendar;
@property (nonatomic, strong) UILabel *Lab_wedding;
@property (nonatomic, strong) TKCalendarMonthView *TK_CalenderVW;

@property (nonatomic, strong) UITextField *Txt_UserName;
@property (nonatomic, strong) UITextField *Txt_Password;
@property (nonatomic, strong) UITextField *Txt_yourName;
@property (nonatomic, strong) UITextField * Txt_yourPartnerName;

@property (nonatomic, strong) UIButton *Bt_yourPhoto;
@property (nonatomic, strong) UIButton *Bt_ChangePassword;
@property (nonatomic, strong) UILabel *Lab_yourName;
@property (nonatomic, strong) UILabel *Lab_yourEmail;
@property (nonatomic, strong) UILabel *Lab_yourPartnerName;
@property (nonatomic, strong) UILabel *Lab_yourPartnerEmail;
@property (nonatomic, strong) UILabel *Lab_PlannerName;
@property (nonatomic, strong) UILabel *Lab_PlannerEmail;
@property (nonatomic, strong) BK_Enviroment *BK_En_object;
@property (nonatomic, strong) UIPopoverController *Ctr_poper;
@property (nonatomic, strong) NSMutableArray *Array_AccountInfo;
@property (nonatomic, strong) UIButton *Bt_Continue;

@property (nonatomic, strong) UIScrollView *SVw_SharingCircles;
@property (nonatomic, strong) UIButton *Bt_AddSharingCircle;
@property (nonatomic, strong) UIView *Vw_AddSharingCircle;
@property (nonatomic, strong) EditGroupUser *Vw_EditGroupUser;
@property (nonatomic, strong) EditPartner *Vw_EditPartner;
@property (nonatomic, strong) EditPlanner *Vw_EditPlanner;
@property (nonatomic, strong) ChangePassword *Vw_ChangePassword;

@property (nonatomic, strong) UIButton *Bt_Channel;
@property (nonatomic, strong) ChannelView *Vw_Channel;


@property (nonatomic, strong) UIImageView *IVw_Background;
@property (nonatomic, strong) UIActivityIndicatorView *ActivityView;

@property (nonatomic, weak) id <AccountViewControllerDelegate> delegate;

-(IBAction)EditPartner:(id)sender;
-(IBAction)EditPlanner:(id)sender;
-(IBAction)ChangePassword:(id)sender;
-(IBAction)showPhotoLib:(id)sender;
-(IBAction)showCalendar:(id)sender;
-(IBAction)showBudgetSection:(id)sender;
-(IBAction)OpenFeedSet:(id)sender;
-(IBAction)OpenMyBooks:(id)sender;
-(IBAction)SignOutPressed:(id)sender;
-(IBAction)ConitunePressed:(id)sender;
-(IBAction)ReturnPressed:(id)sender;

@end
